package com.wpml.product.fallback;

import com.wpml.common.util.RUtil;
import com.wpml.ware.api.WareFeignClient;
import com.wpml.ware.vo.SkuHasStockVo;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @description:
 * @author: wp
 * @date: 2019-09-02 10:43
 **/
@Component
public class WareClientFallback<T> extends WareFeignClient.WareFeignClientFallback<T> {
    @Override
    public RUtil<List<SkuHasStockVo>> hasStock(List<Long> skuIds) {

        return new RUtil<List<SkuHasStockVo>>().fail("微服务调用异常，请联系管理员");
    }
}
